package com.lagou.edu.feign;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * Created by Heweipo on 2021/2/15.
 */
@Component
@Slf4j
public class EmailFallback implements EmailFeignClient {

    @Override
    public boolean sendSmsByEmail(String email, String code) {

        log.error("邮件服务不可用，默认发送失败");

        return false;
    }
}
